package com.ruoyi.info.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.info.mapper.FhInfoExperienceMapper;
import com.ruoyi.info.domain.FhInfoExperience;
import com.ruoyi.info.service.IFhInfoExperienceService;

/**
 * 经验表管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class FhInfoExperienceServiceImpl implements IFhInfoExperienceService 
{
    @Autowired
    private FhInfoExperienceMapper fhInfoExperienceMapper;

    /**
     * 查询经验表管理
     * 
     * @param id 经验表管理主键
     * @return 经验表管理
     */
    @Override
    public FhInfoExperience selectFhInfoExperienceById(Long id)
    {
        return fhInfoExperienceMapper.selectFhInfoExperienceById(id);
    }

    /**
     * 查询经验表管理列表
     * 
     * @param fhInfoExperience 经验表管理
     * @return 经验表管理
     */
    @Override
    public List<FhInfoExperience> selectFhInfoExperienceList(FhInfoExperience fhInfoExperience)
    {
        return fhInfoExperienceMapper.selectFhInfoExperienceList(fhInfoExperience);
    }

    /**
     * 新增经验表管理
     * 
     * @param fhInfoExperience 经验表管理
     * @return 结果
     */
    @Override
    public int insertFhInfoExperience(FhInfoExperience fhInfoExperience)
    {
        return fhInfoExperienceMapper.insertFhInfoExperience(fhInfoExperience);
    }

    /**
     * 修改经验表管理
     * 
     * @param fhInfoExperience 经验表管理
     * @return 结果
     */
    @Override
    public int updateFhInfoExperience(FhInfoExperience fhInfoExperience)
    {
        fhInfoExperience.setUpdateTime(DateUtils.getNowDate());
        return fhInfoExperienceMapper.updateFhInfoExperience(fhInfoExperience);
    }

    /**
     * 批量删除经验表管理
     * 
     * @param ids 需要删除的经验表管理主键
     * @return 结果
     */
    @Override
    public int deleteFhInfoExperienceByIds(Long[] ids)
    {
        return fhInfoExperienceMapper.deleteFhInfoExperienceByIds(ids);
    }

    /**
     * 删除经验表管理信息
     * 
     * @param id 经验表管理主键
     * @return 结果
     */
    @Override
    public int deleteFhInfoExperienceById(Long id)
    {
        return fhInfoExperienceMapper.deleteFhInfoExperienceById(id);
    }
}
